UBI: fix return code in ubi_volume_read
authorAndreas Huber <[email protected]>
Tue, 19 May 2009 09:06:30 +0000 (11:06 +0200)
committerStefan Roese <[email protected]>
Wed, 20 May 2009 11:01:58 +0000 (13:01 +0200)
commit0850301747228a3327f2815a85284d26ade3de95
tree797ee99b564e75cbc9d57074c9efca57937747f0
parentc06326c73bf90e48a8e1cf8893ad31c575423f50
UBI: fix return code in ubi_volume_read

Return -ENODEV instead of 0 when trying to read from a non existing volume.

Signed-off-by: Andreas Huber <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
common/cmd_ubi.c